package com.yidiandao.business.data.recyclertype;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * 发现-指定搜索内容
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017/4/13 0013 14:40
 */
public class AccurateContent implements Parcelable {

    @SerializedName("cat_id")
    private String id;

    @SerializedName("cat_name")
    private String name;

    private String keyword;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public AccurateContent() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.keyword);
    }

    protected AccurateContent(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.keyword = in.readString();
    }

    public static final Creator<AccurateContent> CREATOR = new Creator<AccurateContent>() {
        @Override
        public AccurateContent createFromParcel(Parcel source) {
            return new AccurateContent(source);
        }

        @Override
        public AccurateContent[] newArray(int size) {
            return new AccurateContent[size];
        }
    };
}
